#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
int int_cmp(const void* p1, const void* p2)
{
	return *((int*)p1) - *((int*)p2);
}
int main()
{
	int n = 0;
	int max = 0;
	int min = 0;
	double avg = 0;
	scanf("%d", &n);
	int score[7] = { 0 };
	int i = 0;
	for (i = 0; i < n; i++)
	{
		scanf("%d", &score[i]);
		avg += score[i] * 1.0 / n;
	}
	qsort(score, n, sizeof(int), int_cmp);
	min = score[0];
	max = score[n - 1];
	printf("%d\n%d\n%.2lf\n", max, min, avg);
	return 0;
}